package com.thingsgrid.device.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 对设备上下线的记录
 */

@Data
@Document(collection = "device_record")
@ApiModel(value = "DeviceRecord对象", description = "DeviceRecord对象")
public class DeviceRecord implements Serializable {

	/**
	 * 主键
	 */
	@Field("id")
	private  String id;

	/**
	 * 设备Id
	 */
	@Field("device_id")
	private String deviceId;

	/**
	 * 产品Id
	 */
	@Field("product_id")
	private String productId;

	/**
	 * 设备状态
	 */
	@Field("device_status")
	private Integer deviceStatus;

	/**
	 * 设备上下线的时间
	 */
	@Field("change_time")
	private String changeTime;

	/**
	 *指标类型
	 */
	@Field("metrics_type")
	private String metricsType;
}
